package cn.jiayen.mvc.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by jiayen on 2018/1/26.
 */
@Slf4j
//@ControllerAdvice
public class GlobExceptionHandler {
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public void defaultExceptionHandler(HttpServletRequest request, Exception e) throws Exception {
    }
}
